﻿<UserControl x:Class="VsSpeakerCompanion.UI.EndingSessionControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    VerticalAlignment="Center" HorizontalAlignment="Center" x:ClassModifier="internal">
    <UserControl.Resources>
        <Style x:Key="DefaultStyle" TargetType="{x:Type Control}">
            <Setter Property="FontFamily" Value="Segoe UI" />
            <Setter Property="Foreground" Value="White" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="FontSize" Value="16" />
        </Style>
    </UserControl.Resources>
    <Grid>
        <StackPanel>
            <Label Style="{StaticResource DefaultStyle}" >Ending session in...</Label>
            <Label Style="{StaticResource DefaultStyle}" FontSize="50" FontWeight="Bold" 
                   Content="{Binding RemainingTimeToCancelEndSession, Mode=OneWay}" />
            <Button Style="{StaticResource DefaultStyle}" Background="Black" Click="OnCancelButtonClick" Height="35" Width="120" Margin="0,20,0,0">Cancel</Button>
        </StackPanel>
    </Grid>
</UserControl>
